<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <style type="text/css" rel="stylesheet">
    form {
    margin: 0;
    }
    .editor {
    margin-top: 5px;
    margin-bottom: 5px;
    }
    .ke-content {
    font-family: Courier New;
    font-size: 12px;
    background-color: #ffffff;
}

  </style>
  <script type="text/javascript" charset="utf-8" src="/kindeditor/kindeditor.js"></script>
  <script type="text/javascript">
    KE.show({
        id : 'test_description',
        resizeMode :1,
        cssPath : '/kindeditor/examples/index.css',
        items : [
        'undo', 'redo', 'fontname', 'fontsize', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
        'removeformat', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
        'insertunorderedlist']
    });
  </script>
</head>
<body>
<p>
  <b>测试名称:</b>
  <%=h @test.name %>
</p>

<p>
  <b>测试说明:</b>
  <%=h @test.description %>
</p>

<p>
  <% for q in @test.questions%>
    题目:<%= q.description %>
    倾向:<%= q.trend_scale.name %><br/>
  <% end %>  
</p>

<%= link_to 'Edit', {:id => @test, :action => :edit } %> |
<%= link_to 'Back',  {:controller => :j_test_manage }%>
</body>
